package com.kexl.activiti.demo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @classname: SecurityConfig
 * @description: Spring Security验证配置
 * @author: kexl
 * @create: 2021-03-11 14:11
 * @version: 1.0
 **/
@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity security) throws Exception {
        // 禁用CSRF保护
        security.csrf().disable();
    }
}

